<?php

class Zats extends Util {
	
	public function __construct(){
		$this->loadTemplate();
	}
	
	private function loadTemplate(){
		$config = new Config();
		$params = $config->loadConfig('config');
		
		$loader = new Loader();
		
		if($loader->controller == 'admin'){
			require_once $params['zats']['adminFolder'].'/'.$params['zats']['defaultAdminTheme']."/index.phtml";
		}
		else{
			require_once $params['zats']['themesFolder'].'/'.$params['zats']['defaultTheme']."/index.phtml";
		}
	}
	
	
}

?>